<script>
export default {
	onLaunch: function() {
		console.log('App Launch');

		//#ifdef APP-PLUS
		if (this.vuex_user.hasLogin) {
		        //存在则关闭启动页进入首页
		        plus.navigator.closeSplashscreen();

		    } else {
		        //不存在则跳转至登录页
		        uni.reLaunch({
		            url: "/pages/account/login/pwd-login",
		            success: () => {
		                plus.navigator.closeSplashscreen();
		            }
		        })
		    }

		//#endif
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style lang="scss">
/* 引入 uView 基础样式 */
@import 'uview-ui/index.scss';
@import 'uview-ui/demo.scss';

/* 引入 qs-ui 基础样式 */
@import 'qs-ui/theme.scss';

/* H5的时候，隐藏滚动条 */
/* #ifdef H5 */
::-webkit-scrollbar {
	display: none;
	width: 0 !important;
	height: 0 !important;
	-webkit-appearance: none;
	background: transparent;
}
/* #endif */
uni-tabbar{
		.uni-tabbar{
			box-shadow: 0px -10px 20px 10px #f2f2f2;
			border-top: 1px solid #f2f2f2;
		}
	}
</style>
